package com.ruoyi.elebook.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 专业对象 book_major
 * 
 * @author ruoyi
 * @date 2023-12-11
 */
public class BookMajor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 专业id */
    private Long id;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String name;

    /** 专业代码 */
    @Excel(name = "专业代码")
    private Long code;

    /** 分类id */
    @Excel(name = "分类id")
    private Long bookClassId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setBookClassId(Long bookClassId) 
    {
        this.bookClassId = bookClassId;
    }

    public Long getBookClassId() 
    {
        return bookClassId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("bookClassId", getBookClassId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
